<template>
    <el-container style="height: 100%;">
        <el-aside width="200px" style="background-color: white;">
            <img src="../assets/index.png" style="width: 200px; height: 70px;" alt="">
            
            <el-menu
            default-active="1" router>
            <el-submenu index="1">
                <template slot="title">
                <i class="el-icon-menu"></i>
                <span>住院部</span>
                </template>
                <el-menu-item index="goinHospital">入院申请表</el-menu-item>
                <el-menu-item index="goOutHospital">出院申请表</el-menu-item>
                <el-menu-item index="doctorQuery">医生站:病人查询</el-menu-item>
                <el-menu-item index="nurseQuery">护士站:科室病人</el-menu-item>
            </el-submenu>
            
            </el-menu>
        </el-aside>

        <el-container>
            <el-header class="headerBackground" height="70px">
                <el-row>
                    <el-col :span="2" :offset="21">
                            欢迎您:王先生
                    </el-col>
                    <el-col :span="1">
                        <el-button type="danger" size="small ">退出</el-button>
                    </el-col>
                </el-row>
            </el-header>
            
            <el-main style="background-color: azure;">
                <router-view ></router-view>
            </el-main>
        </el-container>
    </el-container>

</template>

<script>
export default {
  data() {
    return {
    }
  },

  methods: {
  },
}
</script>

<style scoped>
.headerBackground{
    background-image: url(../assets/head.png);
    background-size: cover;
}

*{
  margin: 0;
  padding: 0;
}

html,body,#app{
  height: 100%;
  width: 100%;
}
</style>